package com.flyco.modules.stm.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class StmStockInoutExcel {

    @Excel(name = "出库单号", width = 15)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @Excel(name = "来源编号", width = 25)
    private String sourceId;

    @Excel(name = "出库时间", width = 25 ,format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "商品名称", width = 25)
    private String productName;

    @Excel(name = "物料编码", width = 25)
    private String productSn;

    @Excel(name = "申请数量", width = 15)
    private Integer productQuantity;

    @Excel(name = "出库数量", width = 15)
    private Integer inoutQty;

    @Excel(name = "单价（元）", width = 15)
    private java.math.BigDecimal realAmount;

    @Excel(name = "小计（元）", width = 15)
    private java.math.BigDecimal totalRealAmount;
}
